package net.zoneland.zrdp.system.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import net.zoneland.zrdp.system.mapper.SysHttpLogMapper;
import net.zoneland.zrdp.system.domain.SysHttpLog;
import net.zoneland.zrdp.system.service.ISysHttpLogService;

import javax.annotation.Resource;

/**
 * HttpClient日志Service业务层处理
 *
 * @author zonevue
 */
@Service
public class SysHttpLogServiceImpl implements ISysHttpLogService {

    @Resource
    private SysHttpLogMapper sysHttpLogMapper;

    /**
     * 查询HttpClient日志
     *
     * @param id HttpClient日志主键
     * @return HttpClient日志
     */
    @Override
    public SysHttpLog selectSysHttpLogById(final Long id) {
        return sysHttpLogMapper.selectSysHttpLogById(id);
    }

    /**
     * 查询HttpClient日志列表
     *
     * @param sysHttpLog HttpClient日志
     * @return HttpClient日志
     */
    @Override
    public List<SysHttpLog> selectSysHttpLogList(final SysHttpLog sysHttpLog) {
        return sysHttpLogMapper.selectSysHttpLogList(sysHttpLog);
    }

    /**
     * 新增HttpClient日志
     *
     * @param sysHttpLog HttpClient日志
     * @return 结果
     */
    @Override
    public int insertSysHttpLog(final SysHttpLog sysHttpLog) {
        return sysHttpLogMapper.insertSysHttpLog(sysHttpLog);
    }

    /**
     * 修改HttpClient日志
     *
     * @param sysHttpLog HttpClient日志
     * @return 结果
     */
    @Override
    public int updateSysHttpLog(final SysHttpLog sysHttpLog) {
        return sysHttpLogMapper.updateSysHttpLog(sysHttpLog);
    }

    /**
     * 批量删除HttpClient日志
     *
     * @param ids 需要删除的HttpClient日志主键
     * @return 结果
     */
    @Override
    public int deleteSysHttpLogByIds(final Long[] ids) {
        return sysHttpLogMapper.deleteSysHttpLogByIds(ids);
    }

    /**
     * 删除HttpClient日志信息
     *
     * @param id HttpClient日志主键
     * @return 结果
     */
    @Override
    public int deleteSysHttpLogById(final Long id) {
        return sysHttpLogMapper.deleteSysHttpLogById(id);
    }
}
